import {adminUrl} from "@/utils/baseUrl.js"
import request from '@/utils/request'

// 创建教师薪酬
export function createTeacherRemuneration(data) {
  return request({
    url: adminUrl + '/collegebase/teacher-remuneration/create',
    method: 'post',
    data: data
  })
}

// 更新教师薪酬
export function updateTeacherRemuneration(data) {
  return request({
    url: adminUrl + '/collegebase/teacher-remuneration/update',
    method: 'put',
    data: data
  })
}

// 删除教师薪酬
export function deleteTeacherRemuneration(id) {
  return request({
    url: adminUrl + '/collegebase/teacher-remuneration/delete?id=' + id,
    method: 'delete'
  })
}

// 获得教师薪酬
export function getTeacherRemuneration(id) {
  return request({
    url: adminUrl + '/collegebase/teacher-remuneration/get?id=' + id,
    method: 'get'
  })
}

// 获得教师薪酬分页
export function getTeacherRemunerationPage(query) {
  return request({
    url: adminUrl + '/collegebase/teacher-remuneration/page',
    method: 'get',
    params: query
  })
}

// 导出教师薪酬 Excel
export function exportTeacherRemunerationExcel(query) {
  return request({
    url: adminUrl + '/collegebase/teacher-remuneration/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
